﻿namespace HySoft.Cash.BaseClass
{
    using System;
    using System.Security.Cryptography;
    using System.Text;

    public class EncryptMD5
    {
        public static string MD5Encrypt(string strText)
        {
            byte[] bytes = new MD5CryptoServiceProvider().ComputeHash(Encoding.Default.GetBytes(strText));
            return Encoding.Default.GetString(bytes);
        }
    }
}

